package lab04.test02;

public class Test02 {
    public static void main(String[] args) {
        //1秒一次输出，接口方式的线程
        Thread thread = new Thread(new HelloWorldRunable());
        thread.start();

        //2秒输出一次，继承方式的线程
        HelloWorldThread thread1 = new HelloWorldThread();
        thread1.start();
    }
}
